package com.wangchao.administrator.zenmechi.ui.specialactivity;

import android.util.Log;

import com.wangchao.administrator.zenmechi.bean.special.SpecialBean;
import com.wangchao.administrator.zenmechi.http.HttpHelper;

import java.util.Map;

import rx.Subscriber;
import rx.android.schedulers.AndroidSchedulers;
import rx.schedulers.Schedulers;

/**
 * Created by My on 2016/10/19.
 */
public class SpecialModel implements SpecialContract.Model{
    @Override
    public void getNetworkDate(Subscriber<SpecialBean> subscriber, Map<String, String> stringMap) {
        Log.i("aaa",stringMap.toString()+"model");
        HttpHelper.getInstance().getSpecBean(stringMap)
                .subscribeOn(Schedulers.io())
                .observeOn(AndroidSchedulers.mainThread())
                .subscribe(subscriber);
    }
}
